GXSelectJobOutputPrinter
You can use theGXSelectJobOutputPrinter
function to specify an output printer for a printable document.
void GXSelectJobOutputPrinter (gxJob aJob, Str31 printerName);
aJob
- A reference to the job object for which you are specifying an output printer.
printerName
- The name of the desktop printer.
DESCRIPTION
Your application is responsible for determining the output printer on which to print the document.For example, when the user selects and prints a document from the Finder, your application needs to respond to the Print Documents (
'pdoc'
) Apple event and then call theGXSelectJobOutputPrinter
function to specify an output printer on which to print the selected document. The printer name can be obtained by using the Apple event's optional attribute, keyOptionalKeywordAttr.RESULT CODES
fnfErr Printer driver cannot be located. gxSegmentLoadFailedErr A required code segment could not be found, or there was not enough memory to load it. gxPaperTypeNotFound The paper-type object cannot be located. SEE ALSO
Listing 2-16 on page 2-40 shows how to respond to the Print Documents Apple event and use theGXSelectJobOutputPrinter
function to specify an output printer.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help